﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace mstdump_Analyzer
{
    class ErrorsFields : IDisposable
    {
        public string fileName = "";
        public DataTable errorsOnly = null;
        public DataTable fullContent = null;

        public ErrorsFields()
        {
            errorsOnly = new DataTable();
            errorsOnly.Columns.Add("Time", typeof(DateTime));
            errorsOnly.Columns.Add("Message", typeof(string));

            fullContent = new DataTable();
            fullContent.Columns.Add("Time", typeof(DateTime));
            fullContent.Columns.Add("Message", typeof(string));
        }

        public void Dispose()
        {
            if (errorsOnly != null)
            {
                errorsOnly.Dispose();
            }
            if (fullContent != null)
            {
                fullContent.Dispose();
            }
        }
    }
}
